/******************************************************************************

 ******************************************************************************
  File Name	:log.h
  Version		:001
  Author		:liangH
  Description	:define log class
  History		:20130702 new
  Modification	: 

******************************************************************************/
#ifndef __LOG_H__
#define __LOG_H__

#include "config.h"

class Log{

	/*variable*/
	public: 
		int log_pointer;
		pthread_mutex_t logthread_lock;/*lock*/
	/*constructed function and deconstructed function*/
	public:
		Log();/*constructed function*/
		~Log();/*deconstructed function*/
		
	/*inside process function*/
	private:
	/*inside process function end*/
			
	public:
		/*set,get member functin*/
		/*set,get member functin end*/

		/*basic function*/
		unsigned char write_debug_log(unsigned int log_file,  char* log_txt);/*write debug log file*/
		unsigned char write_debug_log(char* log_txt);/*write debug log file*/
		unsigned char close_debug_log(unsigned int log_file);/*close debug log file*/
		unsigned char create_log_file();/*create log file*/
		/*basic function end*/
};

#endif

